<?php
 
defined('IN_HOUSE5') or exit('No permission resources.');
class member_tag {
private $db,$favorite_db;
public function __construct() {
$this->db = h5_base::load_model('member_model');
$this->favorite_db = h5_base::load_model('favorite_model');
}
public function favoritelist($data) {
$userid = intval($data['userid']);
$limit = $data['limit'];
$order = $data['order'];
$favoritelist = $this->favorite_db->select(array('userid'=>$userid),"*",$limit,$order);
return $favoritelist;
}
public function count($data) {
$userid = intval($data['userid']);
return $this->favorite_db->count(array('userid'=>$userid));
}
public function h5_tag() {
return array(
'action'=>array('favoritelist'=>L('favorite_list','','member')),
'favoritelist'=>array(
'userid'=>array('name'=>L('uid'),'htmltype'=>'input'),
),
);
}
}
?>